package com.tuanzi.loan.web.lazy.businesssystem;

import com.tuanzi.loan.business.service.businesssystem.BusinessBillService;
import com.tuanzi.loan.core.lazy.BaseLazyDataModel;
import com.tuanzi.loan.core.util.SpringContextHolder;
import com.tuanzi.loan.core.vo.PageSearcher;
import com.tuanzi.loan.vo.request.businesssystem.BusinessBillRequest;
import com.tuanzi.loan.vo.response.businesssystem.BusinessBillResponse;
import org.springframework.data.domain.Page;


public class BusinessBillLazyDataModel extends BaseLazyDataModel<BusinessBillRequest, BusinessBillResponse> {
    private BusinessBillService settlementBillService = SpringContextHolder.getBean(BusinessBillService.class);
    public BusinessBillLazyDataModel(BusinessBillRequest settlementBillRequest) {
        super(settlementBillRequest);
    }
    @Override
    protected Page<BusinessBillResponse> doLoad(PageSearcher<BusinessBillRequest> pageSearcher) {
        return settlementBillService.list(pageSearcher);
    }
}
